<%--
  Created by IntelliJ IDEA.
  User: owner
  Date: 2018-08-09
  Time: 10:04
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<div class="shoppingCarInfo">
    <div class="shoppingCarInfoRight">
        已选商品(不含运费)：
        <span class="shoppingCarInfoRight_price myShoppingSum">
                  ￥0.00
             </span>
        <span class="shoppingCarInfoRight_button">
                <button class="myShoppingButton" disabled="false">结算</button>
             </span>
    </div>
    <div class="clear"></div>
    <table>
        <thead>
        <td>
            <!--<input type="checkbox">-->
            <img src="img/site/cartNotSelected.png" class="selectAllItem" selectit="false">
            <span>全选</span>
        </td>
        <td>
            <span>商品信息</span>
        </td>
        <td>
            <span>单价</span>
        </td>
        <td>
            <span>数量</span>
        </td>
        <td>
            <span>价格</span>
        </td>
        <td>
            <span>操作</span>
        </td>
        </thead>
        <tbody>
        <c:forEach items="${items}" var="item" varStatus="st" >
            <tr oiid="${item.id}" class="cartProductItemTR">
                <td class="shoppingCarInfo_select">
                    <!--<input type="checkbox">-->
                    <img src="img/site/cartNotSelected.png" class="shoppingCarInfo_isselect" selectit="false">
                    <a href="foreproduct?pid=${item.product.id}"><img src="img/productSingle_middle/${item.product.firstProductImage.id}.jpg" alt="" class="shoppingCarInfo_selectImg"></a>
                </td>
                <td class="shoppingCarInfo_name">
                    <span class="shoppingCarInfo_title"><a href="foreproduct?pid=${item.product.id}">${item.product.name}</a></span>
                    <span class="shoppingCarInfo_imgs">
                        <img title="支持信用卡支付" src="img/site/creditcard.png">
                        <img title="消费者保障服务,承诺7天退货" src="img/site/7day.png">
                        <img title="消费者保障服务,承诺如实描述" src="img/site/promise.png">
                </span>
                </td>
                <td class="shoppingCarInfo_price">
                    <span class="shoppingCarInfo_orignPrice">￥<fmt:formatNumber type="number" minFractionDigits="2" value="${item.product.orignalPrice}"/></span>
                    <span class="shoppingCarInfo_nowPrice">￥<fmt:formatNumber type="number" minFractionDigits="2" value="${item.product.promotePrice}"/></span>
                </td>
                <td class="shoppingCarInfo_number">
                    <a href="#no" class="NumberUp">+</a><input type="text" value="${item.number}" class="number_num"><a href="#no" class="NumberDown">-</a>
                </td>
                <td class="shoppingCarInfo_sum">
                    <span>￥<fmt:formatNumber type="number" minFractionDigits="2" value="${item.product.promotePrice*item.number}"/></span>
                </td>
                <td class="shoppingCarInfo_delete">
                    <a href="foredeleteCart" oiid="${item.id}" class="deleteLink">删除</a>
                </td>
            </tr>
        </c:forEach>
        </tbody>
    </table>
</div>
